package models

import "time"

// MessagePushRecord 记录每个消息针对用户的推送情况
type MessagePushRecord struct {
	RecordID   int        `gorm:"column:record_id;primaryKey;autoIncrement" json:"record_id"`
	MessageID  int        `gorm:"column:message_id;not null" json:"message_id"`
	UserID     int        `gorm:"column:user_id;not null" json:"user_id"`
	Platform   string     `gorm:"column:platform;size:50;not null" json:"platform"`
	PushStatus string     `gorm:"column:push_status;type:VARCHAR(255);not null" json:"push_status"`
	PushTime   time.Time  `gorm:"column:push_time" json:"push_time"`
	ReadTime   time.Time  `gorm:"column:read_time" json:"read_time"`
	DeletedAt  *time.Time `gorm:"column:deleted_at" json:"deleted_at"`
}
